﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Model
{
    /// <summary>
    /// 实体新闻类
    /// </summary>
    public class NewsModel
    {
        #region 属性
        /// <summary>
        /// 新闻编号
        /// </summary>
        public int NewsID { get; set; }
        /// <summary>
        /// 新闻标题
        /// </summary>
        public String NewsTitle { get; set; }

        /// <summary>
        /// 新闻内容
        /// </summary>
        public String NewsContext { get; set; }
        /// <summary>
        /// 新闻创建时间
        /// </summary>
        public DateTime NewsDate { get; set; } 
        #endregion

        #region 构造方法
        /// <summary>
        /// 构造方法
        /// </summary>
        public NewsModel() { }


        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="id">新闻编号</param>
        /// <param name="title">新闻标题</param>
        /// <param name="context">新闻内容</param>
        /// <param name="newsDate">新闻创建时间</param>
        public NewsModel(Int32 id, String title, string context, DateTime newsDate)
        {
            this.NewsID = id;
            this.NewsTitle = title;
            this.NewsContext = context;
            this.NewsDate = newsDate;
        }
        
        #endregion
    }
}
